FILEFIND.LIST_NEW_FILES Function

Syntax

files as C = FILEFIND.List_New_Files(C path ,C pattern [,C datestring [,C timestring [,C am_pm ]]])

Arguments

pathCharacter

The starting folder.

patternCharacter

A pattern to select file names using wildcard characters like ?*' and ?? '.

datestringCharacter

Default = Today's Date. The date on or after which the file was modified. The date must be in "MM/DD/YY" format.

timestringCharacter

Default = None. The time on or after which the file was modified.

am_pmCharacter

Default = None. Enter one of the following strings: "AM" or "PM"

Returns

filesCharacter

Returns a CR-LF delimited list of matching files modified on or after the specified date and time.

Description

Scan folders and sub-folders for all files updated after date/time specified by datestring and timestring. If datestring and timestring are not specified, then files modified today are returned.

Discussion

The FILEFIND.LIST_NEW_FILES() method recursively searches folders and sub-folders and returns a list of files that match a pattern that were modified on or after a specified date and time.

dim lst as C
dim cnt as N
lst = FILEFIND.List_New_Files("c:\\", "*.txt", "3/1/03")
cnt = line_count(lst)
? cnt
= 38.000000

See Also